<template>
  <view>
    我是测试页面，用来测试

    <navigator url="/pages/test2/test2">
      <u-button size="small" type="primary">跳转测试页</u-button>
    </navigator>
    <u-gap height="10"></u-gap>
    <u-button size="small" type="primary" @click="to">跳转测试2 函数方式</u-button>
  </view>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    to() {
      uni.$to('/pages/test2/test2')
    },
  },
}
</script>

<style lang="scss"></style>
